import React from 'react'
import {useLocation} from 'react-router-dom'
import qs from 'qs';
export default function News() {
    const getData = useLocation();
    const {user,id} = qs.parse(getData.search.split('?')[1])
    console.log(user);
  return (
    <div>
        <p>我是{user}，我一般{id}</p>
    </div>
    
  )
}